package com.burgeon.backend.SHOPBACKEND.mappers;


import com.burgeon.backend.SHOPBACKEND.entity.dao.DaoMessage;
import com.burgeon.backend.SHOPBACKEND.entity.dao.WxMessage;
import com.burgeon.backend.SHOPBACKEND.entity.recored.MessageRecore;

import java.util.List;

public interface RecordMapper {

    //新增聊天记录
    Integer InMessageRecord(String fromId, String toId, String content, String creatTime,
                            String state, String daoId,String miniprogrampage,String image,String msgtype);

    //新增链接纪录
    Integer InMiniProgramPageRecord(String fromId, String toId, String content, String creatTime,
                                    String state, String daoId,String miniprogrampage,String image,String msgtype);

    //修改聊天记录
    Integer upRecordState(String id, String state);

    //查看聊天记录
    List<MessageRecore> getRecord(String daoId, String openId, String startTime, String endTime,int start);

    //查看未读消息
    List<MessageRecore> getRecordByState(String daoId, String openId);





    //根据openid查询聊天信息纪录
    List<WxMessage> getWxRecord(String openId);

    //查询导购没有连接，微信用户没有成功发送的消息
    List<WxMessage> getWxRecordBysState(String openId);

    //查询安卓导购给微信用户发送的消息
    List<DaoMessage> getDaoRecord(String openId, String daoId);

    //最新一条的消息
    String getLastRecord(String openId);

}
